/**
 * 
 */
package cn.com.pansky.payment;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.lang3.StringUtils;
/**
 * 订单查询后台处理示例. 后台查询程序可不通过页面调用，方便系统做定时自动查询、对账。
 * 
 * @author 清算平台项目组
 * @version v1.0.0
 * @date 2012-06-20
 */
// 清算平台查询
// 清算平台支付账户查询
/**
 * 
 */
/**
 * 订单查询后台处理示例. 后台查询程序可不通过页面调用，方便系统做定时自动查询、对账。
 * 
 * @author 清算平台项目组
 * @version v1.0.0
 * @date 2012-06-20
 */
public class QueryServlet extends HttpServlet {
	
	private static final long serialVersionUID = 4887769229216779054L;
	
	@SuppressWarnings("unused")
	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp)
		throws ServletException, IOException {
		String transType = req.getParameter("transType");
		String queryurl = req.getParameter("queryurl");
		String merId = req.getParameter("merId");
		String signKey = req.getParameter("signKey");
		String orderNumber = StringUtils.trimToEmpty(req.getParameter("orderNumber"));
		String orderTime = StringUtils.trimToEmpty(req.getParameter("orderTime"));
		String qid = StringUtils.trimToEmpty(req.getParameter("qid"));
		
//		// 清算平台查询
//		if ("01".equals(transType)) {
//			QueryOrder queryOrder = new QueryOrder(queryurl, merId, signKey, orderNumber, orderTime, qid);
//			queryOrder.query();
//		}
//		
//		// 清算平台支付账户查询
//		if ("03".equals(transType)) {
//			QueryOrder03 queryOrder = new QueryOrder03(queryurl, merId, signKey, orderNumber, qid);
//			queryOrder.query();
//		}
	}
}
